//
// Created by yinlijun on 2017/9/30.
//

#ifndef ROCKYSOCKET_SERVER_THREAD_POOL_H
#define ROCKYSOCKET_SERVER_THREAD_POOL_H

#include "../works/work_data.h"
#include "../common/rocky_connection.h"

#ifdef __cplusplus
extern "C" {
#endif

struct ServerThreadPool;
typedef struct ServerThreadPool ServerThreadPool;

ServerThreadPool *server_thread_pool_create(int size);

ServerThreadPool *server_thread_pool_add(ServerThreadPool *thiz, RockyConnection* connection);

void server_thread_pool_destroy(ServerThreadPool *thiz);

#ifdef __cplusplus
}
#endif

#endif //ROCKYSOCKET_SERVER_THREAD_POOL_H
